package com.chendongyang.www.po;//用来存放电动车的相关信息；

public class bileM{
    private String bileName;
    private int bileAge;
    private String bileBrand;

    public bileM(String bileName, int bileAge, String bileBrand) {
        this.bileName = bileName;
        this.bileAge = bileAge;
        this.bileBrand = bileBrand;
    }

    public bileM() {
    }

    public String getBileName() {
        return bileName;
    }

    public void setBileName(String bileName) {
        this.bileName = bileName;
    }

    public int getBileAge() {
        return bileAge;
    }

    public void setBileAge(int bileAge) {
        this.bileAge = bileAge;
    }

    public String getBileBrand() {
        return bileBrand;
    }

    public void setBileBrand(String bileBrand) {
        this.bileBrand = bileBrand;
    }

    @Override
    public String toString() {
        return "bileM{" +
                "bileName='" + bileName + '\'' +
                ", bileAge=" + bileAge +
                ", bileBrand='" + bileBrand + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof bileM)) return false;

        bileM bileM = (bileM) o;

        if (bileAge != bileM.bileAge) return false;
        if (bileName != null ? !bileName.equals(bileM.bileName) : bileM.bileName != null) return false;
        return bileBrand != null ? bileBrand.equals(bileM.bileBrand) : bileM.bileBrand == null;
    }

    @Override
    public int hashCode() {
        int result = bileName != null ? bileName.hashCode() : 0;
        result = 31 * result + bileAge;
        result = 31 * result + (bileBrand != null ? bileBrand.hashCode() : 0);
        return result;
    }
}
